package com.ttg.common.enums;

import lombok.Getter;

/**
 * Description： 账户维度
 * Author: chenyou
 * Date: 2025/9/3 13:51
 * Company: ttg
 * Copyright: Copyright (c) 2025
 */
@Getter
public enum AccountDimTypeEnum {

    直绑账户(0,"直绑账户"),

    全量账户(1,"全量账户"),

    其他账户(99,"其他账户"),
    ;

    private int value;

    private String desc;


    AccountDimTypeEnum(int value , String desc){
        this.value = value;
        this.desc = desc;
    }

    public static AccountDimTypeEnum getByVal(int value){
        for(AccountDimTypeEnum curr:AccountDimTypeEnum.values()){
            if(curr.value==value){
                return curr;
            }
        }
        return null;
    }
}
